package team.seekers.hula.course.resource.sectionTalk.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import team.seekers.hula.common.entity.enums.StatusEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 回答的评论
 * </p>
 *
 * @author hbc
 * @since 2021-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SectionTalk对象", description="课时的评论")
@TableName(value = "course_section_talk")
public class SectionTalkDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String courseId;

    private String sectionId;

    private String userId;

    private Integer visibility;

    private Integer progress;

    private Integer time;

    @ApiModelProperty(value = "评论的内容")
    private String content;

    @ApiModelProperty(value = "点赞")
    private Integer good;

    @ApiModelProperty(value = "点踩")
    private Integer bad;


    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "0为待审核，1为审核通过，2为审核不通过")
    @JsonValue
    @TableField(select = false)
    private StatusEnum status;


}
